package com.fire.control.system.module.warning.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.fire.control.system.entity.MessagePushSet;
/**
 * 
 * @ClassName:  MessagePushSetRepository
 * @Description:  报警推送设置持久层
 * @author:  xiechengguang
 * @date:  2017年5月22日 下午4:28:35
 *
 */
@Repository
public interface MessagePushSetRepository extends JpaRepository<MessagePushSet, String> {
//	@Transactional
//	@Modifying
//	@Query("update MessagePushSet m set m.status = false where m.id = :id")
//	public int updateMessagePushSetStatus(@Param("id") String id);
	
//	@Query("from MessagePushSet m where m.status = true")
//	public List<MessagePushSet> getMsgPushList();
}
